import * as http from "@/utils/request"


export function getAllContacts(index,size){
  return http.get('/api/admin/Contact/GetAllContacts',{pageIndex:index, pageSize:size});
}

export function addContacts(params){
 return http.post('/api/admin/Contact/AddContact',params);
}

export function updateContacts(params){
  return http.post('/api/admin/Contact/UpdateContact',params);
}

export function deleteContacts(id){
  return http.get('/api/admin/Contact/DeleteContact',{id:id});
}

export function contactDisplay(id,display,rightDisplay){
  return http.get('/api/admin/Contact/ContactDisplay',{id,display,rightDisplay});
}

export function getBaseUrl(){
  return http.getBaseUrl();
}

export function changeSort(id,sort){
  return http.get('/api/admin/Contact/ChangeSort',{id, sort});
}
